package com.njwb.pojo;

public class Person {
    private String name;
    private Integer age;
    public Person() {
        System.out.println("----------------Person()-------------");
    }
//    public Person(String name, Integer age) {
//        System.out.println("----------------Person(String name, Integer age)-------------");
//        this.name = name;
//        this.age = age;
//    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("setName()");
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        System.out.println("setAge()");
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
